<?php /* Smarty version Smarty 3.1.4, created on 2012-05-01 10:54:44
         compiled from ".\templates\category\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:156594f9fc0f41ff327-25686854%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'dd28c6133abe1dd0acedd2d1fa4c0199bd55a7ee' => 
    array (
      0 => '.\\templates\\category\\index.tpl',
      1 => 1334484556,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '156594f9fc0f41ff327-25686854',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'title' => 0,
    'cat_arr' => 0,
    'parent_cat_arr' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty 3.1.4',
  'unifunc' => 'content_4f9fc0f45062c',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f9fc0f45062c')) {function content_4f9fc0f45062c($_smarty_tpl) {?><div id="page-heading">
	<h1><?php echo $_smarty_tpl->tpl_vars['title']->value;?>
</h1>
</div>
<table border="0" cellpadding="0" cellspacing="0" width="95%">
	<tr>
		<td width="60%" rowspan="2" align="center" valign="top">		
			<table border="0" width="90%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
					<th width="5%" align="center" class="table-header-repeat">#</th>
					<th width="35%" align="left" class="table-header-repeat line-left">Category</th>
					<th width="5%" align="left" class="table-header-repeat line-left">&nbsp;</th>
					<th width="15%" class="table-header-repeat line-left">Parent Id</th>
					<th width="20%" class="table-header-repeat line-left">Status</th>
                                        <th width="20%" class="table-header-repeat line-left">&nbsp;</th>
				</tr>
				<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['name'] = 'cat_entry';
$_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['cat_arr']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['cat_entry']['total']);
?>
				<tr>
					<td align="center"><?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cat_entry']['index']]['cat_id'];?>
</td>
					<td><div id="extcatlabel_<?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cat_entry']['index']]['cat_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cat_entry']['index']]['cat_desc'];?>
</div>
						<div id="lblcategory_<?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cat_entry']['index']]['cat_id'];?>
" title="Rename Category" style="display: none;">
							<input type="text" name="txtCatlabel_<?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cat_entry']['index']]['cat_id'];?>
" id="txtCatlabel_<?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cat_entry']['index']]['cat_id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cat_entry']['index']]['cat_desc'];?>
" style="height: 25px;" />
							<!--<input type="button" name="btnUpdateCat_<?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cat_entry']['index']]['cat_id'];?>
" id="btnUpdateCat_<?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cat_entry']['index']]['cat_id'];?>
" value="rename" onclick="" />-->
							<div style="float: right; margin: 5px 30px 0 0;">
							<a href="javascript: void(0);" onclick="updateCatLabel('<?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cat_entry']['index']]['cat_id'];?>
')"><img src="images/icons/icon_update.png" /></a></div>
						</div>
					</td>
					<td><a href="javascript: void(0);" onclick="renameCategory('<?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cat_entry']['index']]['cat_id'];?>
')"><img src="images/icons/edit.gif" width="15" height="15" alt="rename category" title="rename category" /></a></td>
					<td align="center"><?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cat_entry']['index']]['parent_id'];?>
</td>
					<td align="center"><?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cat_entry']['index']]['status'];?>
</td>
                                         <td align="center"><a  href="javascript: void(0);" onclick="deletecategory(<?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['cat_entry']['index']]['cat_id'];?>
);"><img src="images/icons/a-minus.gif" /></a></td>
				</tr>
				<?php endfor; endif; ?>								
		  </table></td>
		<td width="2%">&nbsp;</td>
		<td width="38%" rowspan="2" valign="top"><table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
          <tr>
            <th colspan="2" align="left" class="table-header-repeat line-left"><img src="images/icons/add.png" />Add New</th>
          </tr>
          <tr>
            <td>Category Label</td>
            <td><input type="text" name="txtCat" id="txtCat" value="" /></td>
          </tr>
          <tr>
            <td>Parent Category</td>
            <td><select name="cmbParentCat" id="cmbParentCat">
            	<option value="0">Parent Category</option>  
            	<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['name'] = 'parent_cat_entry';
$_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['parent_cat_arr']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['parent_cat_entry']['total']);
?>	  					
            	<option value="<?php echo $_smarty_tpl->tpl_vars['parent_cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['parent_cat_entry']['index']]['cat_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['parent_cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['parent_cat_entry']['index']]['cat_desc'];?>
</option>              
              	<?php endfor; endif; ?>
            </select>
            </td>
          </tr>
          <tr>
            <td>Status</td>
            <td><select name="cmbStatus" id="cmbStatus">
                <option value="#">Select Status</option>
                <option value="1">Show</option>
                <option value="0">Hide</option>
              </select>
            </td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td><div class="edit-icoset"><a href="javascript: void(0);" onclick="saveCategory();"><img src="images/icons/save-2.gif" />Save</a></td>
          </tr>
        </table></td>
	</tr>
	<tr>
	  <td>&nbsp;</td>
  </tr>
</table>
<?php }} ?>